import App from './App.vue'
import { createSSRApp } from 'vue'
import pinia from './stores'
import authMixin from './mixins/auth'

export function createApp() {
  const app = createSSRApp(App)

  app.use(pinia)

  // 全局注册mixin
  app.mixin(authMixin)

  return {
    app,
  }
}
